﻿using System.IO;
using System.Windows.Media;

namespace OpenFileTransfer.Wpf.Tools
{
    internal static class Constants
    {
        public static readonly int NumberPerPage = 20; //每页显示个数

        // ReSharper disable once InconsistentNaming
        public static class SQLite
        {
            //SQLite数据库文件名
            // ReSharper disable once InconsistentNaming
            private static readonly string FileName = "System.Data.dll";

            //SQLite数据库密码
            // ReSharper disable once InconsistentNaming
            private static readonly string Password = "";

            //SQLite连接字符串
            public static string ConnectionString => $"Data Source={FileName};Password={Password}";

            //获取SQLite连接字符串(指定路径)
            public static string GetConnectionString(string path)
            {
                var fileName = Path.Combine(path, FileName);
                return $"Data Source={fileName};Password={Password}";
            }
        }

        public static class Brushes
        {
            public static readonly Brush SucceedTextBrush = new SolidColorBrush(Colors.Green);
            public static readonly Brush ProcessingTextBrush = new SolidColorBrush(Colors.Orange);
            public static readonly Brush FailedTextBrush = new SolidColorBrush(Colors.Red);
        }
    }
}
